<?php
/**
 * Created by PhpStorm.
 * User: s84
 * Date: 2019/5/7
 * Time: 11:24
 */

namespace app\admin\controller;

use think\Controller;

class Index extends Controller
//class Index
{
    public function index()
    {
//        return 'admin主页';
//        $this->assign('title','TP5后台');
//        return $this->fetch();

        return view('', ['title'=>'TTTTTTTTTP5  后台']);
    }
    // 跳转
    public function jump()
    {
        $this->success('添加成功', url('admin/user/index'));
//        $this->error('添加失败', url('admin/user/index'));
    }

        // 重定向
    public function rd()
    {
//        $this->redirect('index/index/index');
//        $this->redirect('index/blog/article',['year'=>2016,'month'=>10,'day'=>10]);
        $this->redirect('http://huaban.com');
    }
}


